package com.binarysoft.service.common.ping;


import java.net.InetAddress;

import org.savarese.vserv.tcpip.ICMPEchoPacket;

public class PingTask {
	
	private InetAddress target = null;
	private int timeout;
	
	private long taskKey = -1;
	
	/** ping包的一些内部控制信息 */
	private int offset;
	private int dataByteLength;
	private int dataOffset;
	private int packetByteLength;
	
	/** ping包中的数据缓存 */
	private byte[] sendData;
	private byte[] recvData;
	private byte[] tem_RecvData;//
	
	
	/** ping的发送包和接收包 */
	private ICMPEchoPacket sendPacket;
	private ICMPEchoPacket recvPacket;
	
	
	/** 待处理的结果 */
	private boolean haveReply = false;
	private long startTime;
	private long endTime = -1;
	private int timeToLive;
	
	

	
	
	public long getTaskKey() {
		return taskKey;
	}
	public void setTaskKey(long pingKey) {
		this.taskKey = pingKey;
	}
	public ICMPEchoPacket getRecvPacket() {
		return recvPacket;
	}
	public void setRecvPacket(ICMPEchoPacket temp_RecvPacket) {
		this.recvPacket = temp_RecvPacket;
	}
	public byte[] getTem_RecvData() {
		return tem_RecvData;
	}
	public void setTem_RecvData(byte[] tem_RecvData) {
		this.tem_RecvData = tem_RecvData;
	}
	public boolean getHaveReply() {
		return haveReply;
	}
	public void setHaveReply(boolean haveReply) {
		this.haveReply = haveReply;
	}
	public byte[] getRecvData() {
		return recvData;
	}
	public void setRecvData(byte[] recvData) {
		this.recvData = recvData;
	}
	public byte[] getSendData() {
		return sendData;
	}
	public void setSendData(byte[] sendData) {
		this.sendData = sendData;
	}
	public ICMPEchoPacket getSendPacket() {
		return sendPacket;
	}
	public void setSendPacket(ICMPEchoPacket sendPacket) {
		this.sendPacket = sendPacket;
	}
	public int getDataOffset() {
		return dataOffset;
	}
	public void setDataOffset(int dataOffset) {
		this.dataOffset = dataOffset;
	}
	public int getDataByteLength() {
		return dataByteLength;
	}
	public void setDataByteLength(int dataByteLength) {
		this.dataByteLength = dataByteLength;
	}
	public int getPacketByteLength() {
		return packetByteLength;
	}
	public void setPacketByteLength(int packetByteLength) {
		this.packetByteLength = packetByteLength;
	}
	public int getOffset() {
		return offset;
	}
	public void setOffset(int offset) {
		this.offset = offset;
	}
	public long getEndTime() {
		return endTime;
	}
	public void setEndTime(long endTime) {
		this.endTime = endTime;
	}
	public InetAddress getTarget() {
		return target;
	}
	public void setTarget(InetAddress target) {
		this.target = target;
	}
	public long getStartTime() {
		return startTime;
	}
	public void setStartTime(long startTime) {
		this.startTime = startTime;
	}
	public int getTimeout() {
		return timeout;
	}
	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}
	public int getTimeToLive() {
		return timeToLive;
	}
	public void setTimeToLive(int timeToLive) {
		this.timeToLive = timeToLive;
	}
	
	
	
}
